package cn.wdm.ymcc.feign;

import cn.wdm.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-user",fallbackFactory = UserFeignClientFallBackFactory.class)
public interface UserFeignClient {
    @RequestMapping(value = "/user/list",method = RequestMethod.GET)
    JSONResult list();
}
